package com.n3wax.automation.security.ademco;

import com.n3wax.automation.security.ademco.ad2usb.AD2USBController;
import com.n3wax.automation.security.isy.IsyConnector;
import com.n3wax.automation.security.isy.IsyHandler;
import com.n3wax.automation.security.isy.IsyListener;

public class AdemcoISYInterface {

    public static void main(String[] args) {
        //initialize the AD2USB subsystem

        AD2USBController controller = new AD2USBController();
        controller.disarm("4616");
        //IsyListener listener = new IsyListener(controller);
        //need to add something here to disarm out of bypass
        //amd re arm if the alarm was armed before (in case of restart)
        IsyConnector connector = new IsyConnector();
        controller.setAlarmConsumer(connector);
        //bring up and register the ISY interfaces
        IsyListener listener = new IsyListener(controller);
        //IsyHandler handler = new IsyHandler(controller);
        //controller.forceUpdate();

    }

}
